﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace OneSystems.Data.Entities
{
    public partial class Category:BaseEntity<Category>
    {
        public Image Logo
        {
            get
            {
                Image returnImage = null;
                if (this.LogoImage != null)
                {
                    returnImage = OneSystems.Helpers.ImageHelper.GetImage(LogoImage.ToArray());
                }
                return returnImage;
            }
        }
        public override string ToString()
        {
            return Name;
        }
    }
}
